package com.tmeone.erpone.entity;

import java.time.LocalDate;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 仓库表
 * </p>
 *
 * @author wzy
 * @since 2021-04-19
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = false)
public class TWare implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 仓库编号
     */
    private String wareNo;

    /**
     * 仓库名称
     */
    private String wareName;

    /**
     * 负责人
     */
    private String person;

    /**
     * 联系电话
     */
    private String telephone;

    /**
     * 货区数目
     */
    private String cargoNum;

    /**
     * 仓库描述
     */
    private String details;

    /**
     * 创建时间
     */
  /*  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")*/
    private LocalDate deteTime;

    /**
     * 状态（0：启用，1：禁用）
     */
    private String status;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 经纬度
     */
    private String place;

    /**
     * 所属公司id
     */
    private String companyId;

    @TableField(exist = false)
    private Integer shelveNum;

    @TableField(exist = false)
    private Integer cgoNum;

    @TableField(exist = false)
    private Integer emptyCargoNum;

    @TableField(exist = false)
    private List<TCargoArea> cargoAreas;

    @TableField(exist = false)
    private String cId;

    @TableField(exist = false)
    private String goodsNo;

    @TableField(exist = false)
    private String goodsName;

    @TableField(exist = false)
    private String shelvesNo;

    @TableField(exist = false)
    private String pName;

    @TableField(exist = false)
    private String deteTime1;

    @TableField(exist = false)
    private String remark;

    @TableField(exist = false)
    private String totalNum;

    @TableField(exist = false)
    private String personId;

    @TableField(exist = false)
    private String sId;
}
